﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AFSharedLibrary;
using System.Windows.Forms;

namespace UIDesigner.SurfaceProperties.Information
{
    public class SurfaceConstructorInfo
    {
        private string m_strConstructorItemName;
        private ConstructorMapItem m_objConstructorMapItem;
        private List<SurfaceParmInfo> m_rgParmInfos;
        private int m_nIndex;
        private RadioButton m_ctrlButton;

        public RadioButton RadioButton
        {
            get 
            { 
                return m_ctrlButton; 
            }

            set 
            { 
                m_ctrlButton = value; 
            }
        }

        public int PanelIndex
        {
            get
            {
                return m_nIndex;
            }

            set
            {
                m_nIndex = value;
            }
        }

        public string ConstructorItemName
        {
            get 
            { 
                return m_strConstructorItemName; 
            }
        }

        public ConstructorMapItem ConstructorMapItem
        {
            get 
            { 
                return m_objConstructorMapItem; 
            }
        }

        public List<SurfaceParmInfo> ParmInfos
        {
            get
            {
                if (m_rgParmInfos == null)
                {
                    m_rgParmInfos = new List<SurfaceParmInfo>();
                }

                return m_rgParmInfos;
            }
        }

        public SurfaceConstructorInfo(ConstructorMapItem objConstructorMapItem)
        {
            m_strConstructorItemName = objConstructorMapItem.Name;
            m_objConstructorMapItem = objConstructorMapItem;
        }
    }
}
